﻿@model  PaymentApply  
@Html.HiddenFor(m => m.Status)
@Html.HiddenFor(m => m.BankDataId)
@Html.HiddenFor(m => m.ApplyMan)
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(s => s.CustomerName, DisplayOptions.Auto)
    </div>
    <div class="editor-field">
        @if (Model != null && Model.CustomerName.IsNotNullOrWhiteSpace()
            && ViewData["CodeIsNotConfirm"] == null)
        { 
            @Html.TextBoxReadOnlyFor(model => model.CustomerName)
        }
        else
        {
            @Html.TextSearch(m => m.CustomerName, "getCustomer()")
        }
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.CustomerCode, DisplayOptions.Auto)
    </div>
    <div class="editor-field">
        @Html.TextBoxReadOnlyFor(model => model.CustomerCode)
        @Html.ValidationMessageFor(model => model.CustomerCode)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.OrderNum, DisplayOptions.Auto)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.OrderNum)
        @Html.ValidationMessageFor(model => model.OrderNum)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Amount, DisplayOptions.Auto)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Amount)
        @Html.ValidationMessageFor(model => model.Amount)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Fee)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Fee)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Percent)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Percent)
        @Html.ValidationMessageFor(model => model.Percent)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.AdvancePayment)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.AdvancePayment)
        @Html.ValidationMessageFor(model => model.AdvancePayment)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Division)
    </div>
    <div class="editor-field">
        @Html.DropDownListFor(model => model.Division, BindDropDownList.GetParamList(2), "请选择")
    </div>
</div>
<div class="layout-threecolumn">
    <div class="editor-label">
        @Html.DisplayNameFor(m => m.ReleaseOrder)
    </div>
    <div class="editor-field">
        @Html.RadioList("ReleaseOrder", ViewBag.ReleaseOrder as List<SelectListItem>)
    </div>
</div>
<div class="layout-threecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.BillingNo)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.BillingNo)
    </div>
</div>
<div class="layout-threecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.ContractNo)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.ContractNo)
    </div>
</div>
<div class="layout-threecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Note)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(m => m.Note)
    </div>
</div>

